package org.yaac.shared.stat.models;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public abstract class BaseStat implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	private String id;
	
	private Long bytes;
	
	private Long count;
	
	private Date timestamp;

	protected BaseStat(){}
	
	/**
	 * @param bytes
	 * @param count
	 * @param timestamp
	 */
	public BaseStat(Long bytes, Long count, Date timestamp) {
		super();
		this.bytes = bytes;
		this.count = count;
		this.timestamp = timestamp;
	}
	
	public String getId() {
		return id;
	}

	public Long getBytes() {
		return bytes;
	}

	public Long getCount() {
		return count;
	}

	public Date getTimestamp() {
		return timestamp;
	}
}
